package user

import (
	"fmt"
	"qinnailin.cn/cloudnote/controllers"
)

type UserController struct {
	controllers.BaseController
}

func (this *UserController) Has() {
	name := this.GetString("Name")
	fmt.Println(name)
	if name == "admin" {
		this.Ctx.WriteString("false")

	} else {
		this.Ctx.WriteString("true")
	}
	return
}

func (this *UserController) Regedit() {
	this.ToJson(nil, "注册成功！")
}
